package org.meb.conquest.db.dao;

import org.meb.conquest.db.query.Sorting;

import lombok.Getter;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@RequiredArgsConstructor
public class Query<T> {

	public enum Mode {
		OR, AND
	}
	
	@NonNull
	private T example;
	private Mode mode = Mode.AND;
	private Sorting sorting = new Sorting();
	
	public Query(T example, Mode mode) {
		this.example = example;
		this.mode = mode;
	}
}
